
const path = require("path");
const TerserPlugin = require('terser-webpack-plugin');
module.exports = {
    entry:{
        "large-number":"./src/index.js",
        "large-number.min":"./src/index.js"
    },
    output:{
        path:path.resolve(__dirname,'dist'),
        filename:'[name].js',
        library:"largeNumber",
        libraryTarget:"umd",
        libraryExport:"default"
    },
    mode:"none",
    optimization:{
        minimize:true,
        minimizer:[
            new TerserPlugin({
                include:/\.min\.js$/
            })
        ]
    }

}